/*
c * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.bff.gaia.api.common.io;

import com.bff.gaia.annotation.Public;
import com.bff.gaia.annotation.PublicEvolving;
import com.bff.gaia.api.java.tuple.Tuple;
import com.bff.gaia.api.java.typeutils.RowTypeInfo;
import com.bff.gaia.core.io.InputSplit;

import java.io.IOException;

/**
 * An abstract stub implementation for Increment Rich input formats.
 */
@Public
public abstract class IncrementRichInputFormat<OT, T extends InputSplit> extends RichInputFormat<OT, T> {

	private static final long serialVersionUID = 10086L;

	@PublicEvolving
	public void openIncrementInputFormat(int[] keys, int[] columns) throws IOException {
		//do nothing here, just for subclasses
	}

	@PublicEvolving
	public void openIncrement(Tuple keyValues) throws IOException {
		//do nothing here, just for subclasses
	}

	@PublicEvolving
	public RowTypeInfo getIncrementRowProducedType() {
		//do nothing here, just for subclasses
		return null;
	}

	@PublicEvolving
	public RowTypeInfo getIncrementKeyProducedType() {
		//do nothing here, just for subclasses
		return null;
	}

}